package pojo;

public class Room {
    private int roomId;           // 对应表中room_id
    private String roomName;      // 对应表中room_name
    private int floor;            // 对应表中floor
    private int departId1;        // 对应表中depart_id1
    private int departId2;        // 对应表中depart_id2

    // Getters and Setters
    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public int getFloor() {
        return floor;
    }

    public void setFloor(int floor) {
        this.floor = floor;
    }

    public int getDepartId1() {
        return departId1;
    }

    public void setDepartId1(int departId1) {
        this.departId1 = departId1;
    }

    public int getDepartId2() {
        return departId2;
    }

    public void setDepartId2(int departId2) {
        this.departId2 = departId2;
    }

    @Override
    public String toString() {
        return "Room{" +
                "roomId=" + roomId +
                ", roomName='" + roomName + '\'' +
                ", floor=" + floor +
                ", departId1=" + departId1 +
                ", departId2=" + departId2 +
                '}';
    }
} 